<header id="topbar">
    <div class="topbar-left">
        <ol class="breadcrumb">
            <li class="crumb-active">
                <a href="<%= window.location.href %>">游戏基础策略配置</a>
            </li>
        </ol>
    </div>
</header>
<section id="content">

    <div class="panel">
        <div class="section mb15">
            <table class="table" id="confTable">
                <thead>
                    <th>名称</th>
                    <th>key</th>
                    <th>写入值</th>
                    <th>持续时间(秒)</th>
                    <th>操作</th>
                </thead>
                <tbody class="debugTbody">
                    <% _.each(STRATEGY_GAME_LIST, function(v, k){ %>
                    <tr>
                        <%
                            var info = s_dict[k];
                            if (info) {
                                var val = info["value"];
                                var ttl = info["ttl"];
                            } else {
                                var val = 0;
                                var ttl = -1;
                            }
                            var extra_info = ""; 
                            if (k == "lucky:bull:pool_award") {
                                extra_info = "(" + (info["ratio"] * 100).toFixed(2) + "%)";
                            }
                        %>
                        <td>
                            <label class="control-label"><%= v %></label>
                            <label id="extra_label" class="control-label"><%= extra_info %></label>
                        </td>
                        <td>
                            <input type="text" class="form-control" value="<%= k %>">
                        </td>
                        <td>
                            <input type="number"  step=0.01 class="form-control" value="<%= val %>">
                        </td>
                        <td>
                            <input type="number" placeholder="持续时间,单位秒,-1标示不限时" min="-1" class="form-control" value="<%= ttl %>">
                        </td>
                        <td>
                            <a class="glyphicons glyphicon-ok onClickSaveDebug" href="javascript:;"></a>
                        </td>
                    </tr>
                    <% }) %>
                </tbody>
            </table>
        </div>
    </div>
</section>
